import { fetchUserList } from '../api'
import store from '../store'

export function getUserList() {

	return async (dispatch: any) => {
		const resp = await fetchUserList()
		dispatch({ type: 'SET_LIST', payload: resp.data.data })
	}
	// dispatch(async () => {
	// 	const resp = await fetchUserList()
	// 	dispatch({ type: 'SET_LIST', payload: resp.data.data })
	// })
}